package com.xiaoshuidi.cloud.module.contract.enums.contract;

import cn.hutool.core.collection.CollectionUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;


@Getter
@AllArgsConstructor
public enum RecordStatusEnum {

    UNREGISTERED(0, "未网签备案"),
    REGISTERED(1, "已网签备案"),
    REVOKED(2, "已退租备案"),
    RETIRED(3, "撤销合同备案"),
    ;
    //编码
    private final Integer code;
    //信息
    private final String msg;

    /**
     * 未备案
     */
    public static List<Integer> unRegistered = CollectionUtil.newArrayList(UNREGISTERED.getCode(),RETIRED.getCode());

    /**
     * 已备案
     */
    public static List<Integer> registered = CollectionUtil.newArrayList(REVOKED.getCode(),REGISTERED.getCode());


}
